<?php

//URL重写
return array(
	'urlFormat'=>'path',//URL格式。共支持两种格式：'path'格式（如：/path/to/EntryScript.php/name1/value1/name2/value2...）和'get'格式（如:/path/to/EntryScript.php?name1=value1&name2=value2...）。当使用'path'格式时，需要设置如下的规则
	'showScriptName' => false, //去除index.php 
	'urlSuffix'=>'',
	'rules'=>array(//URL规则。语法：<参数名:正则表达式>
				'http://<subdomain:[^www]\w+>.zda.com'=>'space/index',
				'http://<subdomain:[^www]\w+>.zda.com/<controller:\w+>'=>'/space/<controller>',
				'http://<subdomain:[^www]\w+>.zda.com/<controller:\w+>/<action:\w+>/<id:\d+>'=>'/space/<controller>/<action>',
				'http://<subdomain:[^www]\w+>.zda.com/<controller:\w+>/<action:\w+>'=>'/space/<controller>/<action>',
				
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
				'<manage:\w+>/'=>'<manage>/index',
				
			//	'http://zeeeda.zda.com'=>array('space', 'urlSuffix'=>'', 'caseSensitive'=>false),
		//	'http://zeeeda.zda.com'=>array('http://www.zda.com/space', 'urlSuffix'=>'', 'caseSensitive'=>false,'useStrictParsing'=>true),
		//	'http://zeeeda.zda.com/product-<id:\w+>'=>array('/space/product/', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
	),
);
